/* 基础样式 */
.wrap {
  min-height: 100vh;
  background: #f5f7fa;
  padding: 40px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

.register-container {
  width: 100%;
  max-width: 480px;
}

/* 卡片样式 */
.register-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: 36px;
  transition: all 0.3s ease;
}

.register-card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

/* 头部样式 */
.register-header {
  text-align: center;
  margin-bottom: 30px;
}

.register-title {
  font-size: 24px;
  font-weight: 600;
  color: #1d2129;
  margin-bottom: 20px;
}

/* 步骤指示器 */
.register-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e5e6eb;
  color: #86909c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.step-text {
  font-size: 14px;
  color: #86909c;
}

.step.active .step-number {
  background: #165dff;
  color: #fff;
  box-shadow: 0 4px 12px rgba(22, 93, 255, 0.3);
}

.step.active .step-text {
  color: #165dff;
  font-weight: 500;
}

.step-divider {
  width: 60px;
  height: 2px;
  background: #e5e6eb;
  transition: all 0.3s ease;
}

.step.active ~ .step-divider {
  background: #165dff;
}

/* 表单样式 */
.register-form ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.form-item {
  margin-bottom: 20px;
  position: relative;
}

.form-label {
  display: inline-block;
  width: 90px;
  font-size: 14px;
  color: #4e5969;
  vertical-align: middle;
}

.input-group {
  display: inline-block;
  width: calc(100% - 94px);
  vertical-align: middle;
}

.form-input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid #dcdfe6;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.form-input:focus {
  outline: none;
  border-color: #165dff;
  box-shadow: 0 0 0 3px rgba(22, 93, 255, 0.1);
}

.form-input::placeholder {
  color: #c9cdD4;
}

/* 提示文字 */
.input-hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #86909c;
}

/* 验证码按钮 */
.get-code-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  height: 32px;
  padding: 0 16px;
  background: #f2f3f5;
  color: #4e5969;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.get-code-btn:not(.disabled):hover {
  background: #e5e6eb;
  color: #165dff;
}

.get-code-btn.disabled {
  background: #f2f3f5;
  color: #c9cdD4;
  cursor: not-allowed;
}

/* 单选框样式 */
.radio-group {
  padding-top: 8px;
}

.radio-options {
  display: inline-block;
  width: calc(100% - 94px);
  vertical-align: middle;
}

.radio-option {
  display: inline-block;
  margin-right: 30px;
  cursor: pointer;
}

.radio-custom {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 1px solid #dcdfe6;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 8px;
  position: relative;
  transition: all 0.2s ease;
}

.radio-option.checked .radio-custom {
  border-color: #165dff;
  background: #165dff;
}

.radio-option.checked .radio-custom::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.radio-text {
  vertical-align: middle;
  color: #4e5969;
  font-size: 14px;
}

/* 复选框样式 */
.agreement {
  padding: 12px 0;
}

.checkbox-option {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.checkbox-custom {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  vertical-align: middle;
  margin-right: 8px;
  position: relative;
  transition: all 0.2s ease;
}

.checkbox-option input:checked + .checkbox-custom {
  border-color: #165dff;
  background: #165dff;
}

.checkbox-option input:checked + .checkbox-custom::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-text {
  font-size: 14px;
  color: #86909c;
}

.agreement-hint {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: #c9cdD4;
  margin-left: 26px;
}

/* 链接样式 */
.link {
  color: #165dff;
  text-decoration: none;
  transition: all 0.2s ease;
}

.link:hover {
  color: #0e42d2;
  text-decoration: underline;
}

/* 提交按钮 */
.submit-btn {
  width: 100%;
  height: 52px;
  background: #165dff;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.submit-btn:hover:not(:disabled) {
  background: #0e42d2;
  box-shadow: 0 4px 12px rgba(22, 93, 255, 0.3);
}

.submit-btn:disabled {
  background: #a0b4ff;
  cursor: not-allowed;
}

/* 登录链接 */
.login-link {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: #86909c;
}

/* 注册成功页面 */
.success-card {
  text-align: center;
  padding: 48px 36px;
}

.success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: #e8f3ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-check {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid #165dff;
  border-radius: 50%;
  position: relative;
}

.icon-check::after {
  content: '';
  position: absolute;
  left: 8px;
  top: 2px;
  width: 12px;
  height: 24px;
  border: solid #165dff;
  border-width: 0 4px 4px 0;
  transform: rotate(45deg);
}

.success-title {
  font-size: 24px;
  font-weight: 600;
  color: #1d2129;
  margin-bottom: 16px;
}

.success-message {
  font-size: 16px;
  color: #4e5969;
  margin-bottom: 32px;
}

.highlight {
  color: #165dff;
  font-weight: 500;
}

.success-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.primary-btn, .secondary-btn {
  display: inline-block;
  width: 140px;
  height: 52px;
  line-height: 52px;
  text-align: center;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.primary-btn {
  background: #165dff;
  color: #fff;
}

.primary-btn:hover {
  background: #0e42d2;
  box-shadow: 0 4px 12px rgba(22, 93, 255, 0.3);
}

.secondary-btn {
  background: #fff;
  color: #165dff;
  border: 1px solid #165dff;
}

.secondary-btn:hover {
  background: #f2f7ff;
}

/* 辅助样式 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* 响应式调整 */
@media (max-width: 480px) {
  .register-card {
    padding: 24px 16px;
  }

  .form-label {
    display: block;
    width: 100%;
    margin-bottom: 8px;
  }

  .input-group, .radio-options {
    width: 100%;
  }

  .radio-option {
    margin-right: 20px;
  }

  .success-actions {
    flex-direction: column;
    padding: 0 20px;
  }

  .primary-btn, .secondary-btn {
    width: 100%;
  }
}